package io.itit.ecp.admin.server.service;

import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import io.itit.ecp.admin.server.entity.EnergyForecastDataEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;


public interface IEnergyForecastDataService extends JoinIService<EnergyForecastDataEntity> {

    default BigDecimal sumForecastPrecision(String sceneEdificeId, List<String> staticsTypes, LocalDateTime startTime, LocalDateTime endTime) {
        return this.sumForecastPrecision(null, null, sceneEdificeId, null, null, staticsTypes, startTime, endTime);
    }

    BigDecimal sumForecastPrecision(String sceneProjectId,
                                    String sceneCompanyId,
                                    String sceneEdificeId,
                                    String sceneFloorId,
                                    String sceneRoomId,
                                    List<String> staticsTypes, LocalDateTime startTime, LocalDateTime endTime);

    List<EnergyForecastDataEntity> queryForList(String sceneProjectId, String sceneCompanyId, String sceneEdificeId,
                                                           String sceneFloorId, String sceneRoomId, List<String> staticsTypes,
                                                           LocalDateTime startTime, LocalDateTime endTime);

}
